package com.lanier.dydownloader.utils

object DouYinCookie {
    //# cookie 请登录网页抖音后F12查看
    //# cookies 和 cookie 二选一, 要使用这种形式, 请注释下面的cookie
    //# 目前只需要msToken、ttwid、odin_tt、passport_csrf_token、sid_guard
    //# 可以动态添加, 程序会根据填的键查找，并没有写死, 如果抖音需要更多的cookie自己加上就行了
    //cookies:
    //  msToken: 3HhkYC9QOw1ZEO6rpc5H6MRLb8QoS-2yFxZxUqp3IsYnR-46AiwSC9O-hh7rJRsKA-tFrbFWnmN5WMyS1AMWcGWWAQT-PusAeLlBOw2Ml60wW5_FKMvv_sghK53QNA==
    //  ttwid: 1%7CWHfCHqJDWEl1f3Fhjo6D5tmECAaM2bBq-CBjQIOhV18%7C1698295525%7Ca7791c0e2c2bd11b01e11ed55133dca69c9da13e2ce653636fa40697da2ee578
    //  odin_tt: 7b2b4c27068339b16c53e64161dda678a995db992e5692d8b15ad7d662e211b6b2c8491fc9b6fb320d17142d3a52ac51
    //  passport_csrf_token: eab09aafa87de96c540d4891e7f5ea06
    //  sid_guard: c59dd690f55b422f22d93f356b5aa790%7C1698887765%7C5183998%7CMon%2C+01-Jan-2024+01%3A16%3A03+GMT
    //
    //# cookie 请登录网页抖音后F12查看
    //# cookies 和 cookie 二选一, 要使用这种形式, 请注释上面的cookies及包含的所有键值对
    //# 设置了这个后上面的cookies选项自动失效, 这个优先级更高
    //# 格式: "name1=value1; name2=value2;" 注意要加冒号
    //# 冒号中的内容包括不限于以下键值对, 如果抖音需要更多的cookie自己加上就行了
    //#cookie: "msToken=xxx; ttwid=xxx; odin_tt=xxx; passport_csrf_token=xxx; sid_guard=xxx;"
    //#cookie: ""

    val msToken = """
        3HhkYC9QOw1ZEO6rpc5H6MRLb8QoS-2yFxZxUqp3IsYnR-46AiwSC9O-hh7rJRsKA-tFrbFWnmN5WMyS1AMWcGWWAQT-PusAeLlBOw2Ml60wW5_FKMvv_sghK53QNA==
        """.trimIndent()
    val ttwid = """
        1%7CWHfCHqJDWEl1f3Fhjo6D5tmECAaM2bBq-CBjQIOhV18%7C1698295525%7Ca7791c0e2c2bd11b01e11ed55133dca69c9da13e2ce653636fa40697da2ee578
        """.trimIndent()
    val odin_tt = """
        7b2b4c27068339b16c53e64161dda678a995db992e5692d8b15ad7d662e211b6b2c8491fc9b6fb320d17142d3a52ac51
        """.trimIndent()
    val passport_csrf_token = """
        eab09aafa87de96c540d4891e7f5ea06
        """.trimIndent()
    val sid_guard = """
        c59dd690f55b422f22d93f356b5aa790%7C1698887765%7C5183998%7CMon%2C+01-Jan-2024+01%3A16%3A03+GMT
        """.trimIndent()

    var webCookie = """
        ttwid=1%7C1nkM2JZy9KS2u9Z_Q6WCaqUZnq1VTBcwwJpzNqvIxT0%7C1665055333%7C5044f9ac08822040d011689f15314359e103c12e3773fbe79ec9b9a0acce289d; n_mh=hvnJEQ4Q5eiH74-84kTFUyv4VK8xtSrpRZG1AhCeFNI; LOGIN_STATUS=1; store-region=cn-zj; store-region-src=uid; d_ticket=2c48481a00318605436b1ecad4586b5a15f3b; s_v_web_id=verify_lkzedydw_bNTyi0ij_tqJN_4x64_A79D_ucySJub55FIf; strategyABtestKey=%221691323588.125%22; passport_csrf_token=301a21e92b573ba382e9430216256ce3; passport_csrf_token_default=301a21e92b573ba382e9430216256ce3; __ac_nonce=064cf8cc400badae67c22; __ac_signature=_02B4Z6wo00f01dVN7egAAIDCQZu25lxicG3VaelAABGeB8eUACBkBlTBUE66ThqiPk.k3Yk.RhWH0hFtJprBidSXPZSpbPNyCO27JV5zkA45nQfw-jg9choA-ASa2JGkOF2HfMaU32Xh60TT03; bd_ticket_guard_client_data=eyJiZC10aWNrZXQtZ3VhcmQtdmVyc2lvbiI6MiwiYmQtdGlja2V0LWd1YXJkLWl0ZXJhdGlvbi12ZXJzaW9uIjoxLCJiZC10aWNrZXQtZ3VhcmQtY2xpZW50LWNzciI6Ii0tLS0tQkVHSU4gQ0VSVElGSUNBVEUgUkVRVUVTVC0tLS0tXHJcbk1JSUJEVENCdFFJQkFEQW5NUXN3Q1FZRFZRUUdFd0pEVGpFWU1CWUdBMVVFQXd3UFltUmZkR2xqYTJWMFgyZDFcclxuWVhKa01Ga3dFd1lIS29aSXpqMENBUVlJS29aSXpqMERBUWNEUWdBRTRzWmJSRHJvbUJKOXd3VWswYkd3ZXFmSFxyXG56eENJcThBUzFSR0JtYjI5bjRsbkhVZ3Zpd2dsY01oc3Y5Vkx0NVIzdDhJdk9UdkZITTFkWU1hSWZ0dmZJS0FzXHJcbk1Db0dDU3FHU0liM0RRRUpEakVkTUJzd0dRWURWUjBSQkJJd0VJSU9kM2QzTG1SdmRYbHBiaTVqYjIwd0NnWUlcclxuS29aSXpqMEVBd0lEUndBd1JBSWdUMUJoV2RtS2U5QW95WnFjSVNpT3NLT2x5UE1xNWpEZE9MejZsNklTZ2pJQ1xyXG5JSEo4Qk5tUnJRZlpYQnUvdkhaQ2dXSDhhQjRxWjZRN1l3VXEyK0FWNHBDYVxyXG4tLS0tLUVORCBDRVJUSUZJQ0FURSBSRVFVRVNULS0tLS1cclxuIn0=; FORCE_LOGIN=%7B%22videoConsumedRemainSeconds%22%3A180%7D; passport_assist_user=Cjwc72Q8P2-HnNZ3ZIo9twQzlB1b7rty_Xh9dsFZa26E9sR5ZhAFgx4jhDDhluCXCZUWhk6_Kpgj0DjYsyEaSAo8hkw3ooH-EIw22pKL3xqox8eI9DpGU_EhVwrwjnwk1LVsWjEyRl4EE7ehE7v7WP5qe6lSIIi_UqZZKSqDEJW_uA0Yia_WVCIBA6jDjCQ%3D; sso_uid_tt=2d3ce0d278aaf938767d080d2a486af7; sso_uid_tt_ss=2d3ce0d278aaf938767d080d2a486af7; toutiao_sso_user=3364d85077da2668bb01592aea80ccc8; toutiao_sso_user_ss=3364d85077da2668bb01592aea80ccc8; sid_ucp_sso_v1=1.0.0-KDllNDQ1NjAzNGU5M2ZlMDMxNDZiOGE1MDFhZjRkMGIwN2UxNjM5ZDUKHQiWyueX3QEQi5q-pgYY7zEgDDDr4vLHBTgGQPQHGgJobCIgMzM2NGQ4NTA3N2RhMjY2OGJiMDE1OTJhZWE4MGNjYzg; ssid_ucp_sso_v1=1.0.0-KDllNDQ1NjAzNGU5M2ZlMDMxNDZiOGE1MDFhZjRkMGIwN2UxNjM5ZDUKHQiWyueX3QEQi5q-pgYY7zEgDDDr4vLHBTgGQPQHGgJobCIgMzM2NGQ4NTA3N2RhMjY2OGJiMDE1OTJhZWE4MGNjYzg; odin_tt=92919b5db9fcc24a8facaa12fc0964f258de71ca66ef7b2efe1124480aaaed6410d07f2e7507dd1100de9f96b51f6c36; passport_auth_status=feb6897f307cbbeca13714ef47260123%2C; passport_auth_status_ss=feb6897f307cbbeca13714ef47260123%2C; uid_tt=a04855319bab6c8fb03f42d53b5c675f; uid_tt_ss=a04855319bab6c8fb03f42d53b5c675f; sid_tt=babcfd7283cba766dab7b52794f61896; sessionid=babcfd7283cba766dab7b52794f61896; sessionid_ss=babcfd7283cba766dab7b52794f61896; _bd_ticket_crypt_cookie=85d8b028e5ef4d3ba22f584733b0cd8c; __security_server_data_status=1; sid_guard=babcfd7283cba766dab7b52794f61896%7C1691323665%7C5183997%7CThu%2C+05-Oct-2023+12%3A07%3A42+GMT; sid_ucp_v1=1.0.0-KGI0MjU0NDQ0NmZmYTQ3ZWM1NmZmNDY4NjRmYzAwNzQzMGJjNzU5M2QKGQiWyueX3QEQkZq-pgYY7zEgDDgGQPQHSAQaAmhsIiBiYWJjZmQ3MjgzY2JhNzY2ZGFiN2I1Mjc5NGY2MTg5Ng; ssid_ucp_v1=1.0.0-KGI0MjU0NDQ0NmZmYTQ3ZWM1NmZmNDY4NjRmYzAwNzQzMGJjNzU5M2QKGQiWyueX3QEQkZq-pgYY7zEgDDgGQPQHSAQaAmhsIiBiYWJjZmQ3MjgzY2JhNzY2ZGFiN2I1Mjc5NGY2MTg5Ng; douyin.com; device_web_cpu_core=8; device_web_memory_size=8; webcast_local_quality=null; FOLLOW_LIVE_POINT_INFO=%22MS4wLjABAAAAZZoSR1AZDLkSp5YyEpVDTcVQHYppVQzFnxa0hcjGHKw%2F1691337600000%2F0%2F0%2F1691324358138%22; VIDEO_FILTER_MEMO_SELECT=%7B%22expireTime%22%3A1691928558357%2C%22type%22%3Anull%7D; volume_info=%7B%22isUserMute%22%3Afalse%2C%22isMute%22%3Afalse%2C%22volume%22%3A0.6%7D; csrf_session_id=0c6ca870a2dc28a63cb00d2098e21e56; download_guide=%223%2F20230806%2F0%22; pwa2=%222%7C0%7C3%7C0%22; home_can_add_dy_2_desktop=%220%22; msToken=kqPxt8xJqX_KdbKn3nMWfIOh0KKVBmPUNNbHSOuPNOitFXpIWN_0v0n8miWgk-S_oPEECbv948ZFs6hwCHom-IrtQ9_GkzNmsh5824Qd-k6W6w3ELaP7aGCEBXdLbsBd; publish_badge_show_info=%220%2C0%2C0%2C1691323998460%22; tt_scid=Ge9Ir8a8-ApeuhfvfIGp7xM571rqv510VKNA8.y.XEumwCHCTTgGckd8oJOyVFUld683; msToken=f-qFSHKi9dgLCzNDvWO4KamA48kvQ5zisuBpYx95a5mOGGrOhaPlXlL38dceht2GlgH1h78T5i--1gFDB_gZAXwHniCW3TaWhQ1zBjGiFVCyoSb3x85CFyVyCzttwxP5; passport_fe_beating_status=false; stream_recommend_feed_params=%22%7B%5C%22cookie_enabled%5C%22%3Atrue%2C%5C%22screen_width%5C%22%3A1440%2C%5C%22screen_height%5C%22%3A900%2C%5C%22browser_online%5C%22%3Atrue%2C%5C%22cpu_core_num%5C%22%3A8%2C%5C%22device_memory%5C%22%3A8%2C%5C%22downlink%5C%22%3A10%2C%5C%22effective_type%5C%22%3A%5C%224g%5C%22%2C%5C%22round_trip_time%5C%22%3A100%7D%22
 """.trimIndent()

    val cookie
        get() = webCookie

//    var webCookie = """
//        s_v_web_id=verify_lojje91r_KY5c149C_jjyq_4RLr_9gA0_bzSw6VFI3z9i; _tea_utm_cache_2018={%22utm_source%22:%22copy%22%2C%22utm_medium%22:%22android%22%2C%22utm_campaign%22:%22client_share%22}; ttwid=1%7CJomROjHTpzhS-mPIDviTV_j2TdOpgd8Vp2SPfXWdHyM%7C1699071917%7Cfa312a7b9ad95756434a68bec07331f6bed437fd8bcb4a461cb0b71bdf2c1ce2; __ac_signature=_02B4Z6wo00f01oOOY-AAAIDC6xutgJAbX1KDvmdAAMWya3; __ac_referer=__ac_blank; __ac_nonce=065462bd700ca80f48198;
//        douyin.com; device_web_cpu_core=8; device_web_memory_size=4; ttwid=1%7CZVVBOGulrtWHNt8dU6iBvEyNu106UTsRDLjg1Xym20c%7C1699071917%7C0f241e411c1e8f6d0745ae3771c7f400f96efb050bc006a1cfea38e506e38fc5; webcast_local_quality=null; home_can_add_dy_2_desktop=%220%22; passport_csrf_token=ace38095686cfa4700c9846a12fca121; passport_csrf_token_default=ace38095686cfa4700c9846a12fca121; FORCE_LOGIN=%7B%22videoConsumedRemainSeconds%22%3A180%7D; strategyABtestKey=%221699071928.33%22; s_v_web_id=verify_lojjk2ry_nOka47SF_Gn3P_4SqC_B9AH_JBDOJfpexJSh; ttcid=b954d8b857e0429dade8d392e965f26d17; n_mh=FDN7STsZzKLpGvnl_cSOkq5iSvgd734rWqHKSbuXc1s; sso_uid_tt=26eeb2f5826ac1a0f86041f28a44a7f7; sso_uid_tt_ss=26eeb2f5826ac1a0f86041f28a44a7f7; toutiao_sso_user=9f99bb2d2d6e67ca2fd00f9282fb5252; toutiao_sso_user_ss=9f99bb2d2d6e67ca2fd00f9282fb5252; passport_auth_status=dfbe30b23a6d9c5f12d3eed776c8421d%2C; passport_auth_status_ss=dfbe30b23a6d9c5f12d3eed776c8421d%2C; uid_tt=c052ff77ef71591ab6190e7e4f5f7fdd; uid_tt_ss=c052ff77ef71591ab6190e7e4f5f7fdd; sid_tt=8856d21ef63eb4dbfbd5caf21de90f57; sessionid=8856d21ef63eb4dbfbd5caf21de90f57; sessionid_ss=8856d21ef63eb4dbfbd5caf21de90f57; odin_tt=7f5afde0a5e9c484a57a87c2f1e92b711f31d6008fee37a6351f457e4fd3d6578f736b4a9e4755015f61327e3a896b93; passport_assist_user=CjwQtW79rXCg0Q2O8YETQxs1oNwL5uMiKDT47hXZ5PKHGMTjSzcCqP590JaeKqzRQVOaPB1IBg8yJQAawicaSgo8gtxZIv17fhHCO5hQdra__zUqVKW-hanxIcedUQ2CEFvu77jR8WyPF0YWwMjzyXR0L-RvwdIbEeNR91YkEIivwA0Yia_WVCABIgED3apH3g%3D%3D; sid_ucp_sso_v1=1.0.0-KDc0NzExZTlkYTMyNTYyYWEzNzg1NmMyYTAzMzIyZjJlYzRlMWYyMDAKHQjKobWknAIQ04-XqgYY7zEgDDCcjL_QBTgGQPQHGgJscSIgOWY5OWJiMmQyZDZlNjdjYTJmZDAwZjkyODJmYjUyNTI; ssid_ucp_sso_v1=1.0.0-KDc0NzExZTlkYTMyNTYyYWEzNzg1NmMyYTAzMzIyZjJlYzRlMWYyMDAKHQjKobWknAIQ04-XqgYY7zEgDDCcjL_QBTgGQPQHGgJscSIgOWY5OWJiMmQyZDZlNjdjYTJmZDAwZjkyODJmYjUyNTI; publish_badge_show_info=%220%2C0%2C0%2C1699071964346%22; LOGIN_STATUS=1; store-region=cn-sc; store-region-src=uid; passport_fe_beating_status=true; _bd_ticket_crypt_doamin=2; _bd_ticket_crypt_cookie=fe268e9e2875476f6605422e85bd51db; __security_server_data_status=1; sid_guard=8856d21ef63eb4dbfbd5caf21de90f57%7C1699071963%7C5183994%7CWed%2C+03-Jan-2024+04%3A25%3A57+GMT; sid_ucp_v1=1.0.0-KGY2YzI3YjdlNDYzNjc5Yjg2YjM5OTFiOGYwNTAyMzBmYzcyNzQ5ZTYKGQjKobWknAIQ24-XqgYY7zEgDDgGQPQHSAQaAmxmIiA4ODU2ZDIxZWY2M2ViNGRiZmJkNWNhZjIxZGU5MGY1Nw; ssid_ucp_v1=1.0.0-KGY2YzI3YjdlNDYzNjc5Yjg2YjM5OTFiOGYwNTAyMzBmYzcyNzQ5ZTYKGQjKobWknAIQ24-XqgYY7zEgDDgGQPQHSAQaAmxmIiA4ODU2ZDIxZWY2M2ViNGRiZmJkNWNhZjIxZGU5MGY1Nw; FOLLOW_NUMBER_YELLOW_POINT_INFO=%22MS4wLjABAAAAB_gBYJuEwfV3GyCsS4W8ulinpaMQ7WESR5LneX8bqoU%2F1699113600000%2F0%2F1699077710582%2F0%22; volume_info=%7B%22isUserMute%22%3Afalse%2C%22isMute%22%3Afalse%2C%22volume%22%3A0.5%7D; csrf_session_id=859f8f0948edf14f9702c18209f627ee; IsDouyinActive=true; stream_recommend_feed_params=%22%7B%5C%22cookie_enabled%5C%22%3Atrue%2C%5C%22screen_width%5C%22%3A360%2C%5C%22screen_height%5C%22%3A640%2C%5C%22browser_online%5C%22%3Atrue%2C%5C%22cpu_core_num%5C%22%3A8%2C%5C%22device_memory%5C%22%3A4%2C%5C%22downlink%5C%22%3A9.7%2C%5C%22effective_type%5C%22%3A%5C%224g%5C%22%2C%5C%22round_trip_time%5C%22%3A0%7D%22; FOLLOW_LIVE_POINT_INFO=%22MS4wLjABAAAAB_gBYJuEwfV3GyCsS4W8ulinpaMQ7WESR5LneX8bqoU%2F1699113600000%2F0%2F1699082863646%2F0%22; bd_ticket_guard_client_data=eyJiZC10aWNrZXQtZ3VhcmQtdmVyc2lvbiI6MiwiYmQtdGlja2V0LWd1YXJkLWl0ZXJhdGlvbi12ZXJzaW9uIjoxLCJiZC10aWNrZXQtZ3VhcmQtcmVlLXB1YmxpYy1rZXkiOiJCTXlLeWVRZkg5b2tLSnZ6NFcydnN5dlZpckpwcGV3TUZGUmROdHQ3S2pMK1ZkZmF3U1BJSFdyTFJSNWxEczZXQ1FldUlYZFdRamVuVDFSRktpUSsrUmM9IiwiYmQtdGlja2V0LWd1YXJkLXdlYi12ZXJzaW9uIjoxfQ%3D%3D; msToken=AmOcObZsuUEkMGYl8nP4TVZtXnrOWx4ZtsSfX32cQgIY2BwDE3oN1GXN22lv3oTw8vL3JGJKZ5qLRDcThxYKfVDcJSoMtqYv8R7_FhL9tuzHeX0aETY9a_C-j184DA==; tt_scid=JT1BamFw1JJivX2.G9I23XZ6..juCwQqAsVh3aB77pqj5zPX79KJ9PcD4tPpa35.c310; msToken=i5Nlboh1IMz7ah2_IBjVgSWYfTARFOQXnm10TdUDxG3Y7v8FLxwoj5EE
//    """.trimIndent()
//
//    val cookie
//        get() = webCookie.split(";").filter { it.contains("=") }.joinToString { "; " }.dropLast(2)

}